package com.heima.client.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.dtos.WmChannelDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "leadnews-wemedia")
@RequestMapping("channel")
public interface IWmChannelClient {
    @PostMapping("/save")
    ResponseResult saveChannel(WmChannelDto channelDto);
    @PostMapping("/list")
    ResponseResult pageQuery(WmChannelDto channelDto);
    @PostMapping("/update")
    ResponseResult update(WmChannelDto channelDto);
    @PostMapping("/del")
    ResponseResult deleteChannel(Integer id);
}
